<!DOCTYPE html>
<html>
{include file="public/head" /}
<body class="zanpian-body">
<section class="content">
<div class="row">
<div class="col-md-12">
<div class="callout callout-title">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
                <h4>{$nav.title}</h4>
                {notempty name="nav.remark"}
                <p>{$nav.remark}</p>
                {/notempty}
</div>
<div class="panel-body">
    <div class="tab-content tab-fade" id="contents" style="display:block">
    <form id="myform" class="myform form-horizontal" method="post" load="no">  
              <div class="tab-content">
               <div class="input-group margin">
                <div class="input-group-btn">
                <span class="btn btn-default form-txt" style=" position:absolute;top:0px;">选择数据表与字段：</span>
                  <span class="form-txt-hide"></span>
                </div>
                <!-- /btn-group -->
               <select name="exptable" id="exptable" size="10" class="form-control select2">
               <option value="" selected>选择需要操作的表</option>
            {volist name="list_table" id="zanpian"}<option value="{$zanpian.name}">{$zanpian.name}<span class="hidden-xs">【{$zanpian.comment}】</span></option>{/volist}
            </select> 
            <div id="fields"></div>                 
            </div>
                <div class="input-group margin">
                <div class="input-group-btn">
                <span class="btn btn-default form-txt" style=" position:absolute;top:0px;">要替换的字段：</span>
                <span class="form-txt-hide"></span>
                </div>
                <!-- /btn-group -->
                <input type="text" class="form-control" name="rpfield" value=""  id="rpfield" autocomplete="off"  placeholder="填写字段" data-tip="先从上面选择表然后在获取出来的字段列表中，点击需要替换的字段">
                </div>            
                <div class="input-group margin">
                <div class="input-group-btn">
                <span class="btn btn-default form-txt" style=" position:absolute;top:0px;">要替换的内容：</span>
                  <span class="form-txt-hide"></span>
                </div>
                <!-- /btn-group -->
                <textarea class="form-control" name="rpstring" id="rpstring"  rows="3" placeholder="需要替换的内容" data-tip="就是你需要将上面内容替换"></textarea>
                </div> 
                <div class="input-group margin">
                <div class="input-group-btn">
                 <span class="btn btn-default form-txt" style=" position:absolute;top:0px;">替换后的内容：</span>
                  <span class="form-txt-hide"></span>
                </div>
                <!-- /btn-group -->
                <textarea  class="form-control" name="tostring" id="tostring"  rows="3"  placeholder="替换后的内容" data-tip="就是替换后的内容"></textarea>
                </div>
                <div class="input-group margin">
                <div class="input-group-btn">
                <span class="btn btn-default form-txt" style=" position:absolute;top:0px;">替换条件：</span>
                  <span class="form-txt-hide"></span>
                </div>
                <!-- /btn-group -->
                <textarea  class="form-control" name="condition" id="condition"   rows="3"  placeholder="留空则全部替换,请遵循SQL的条件语句规则 如vod_id=888 vod_id&gt;888" data-tip="留空则全部替换,请遵循SQL的条件语句规则 如vod_id=888 vod_id&gt;888"></textarea>
                </div>                                 
             
            </div>    
         </div>
         <!-- /.panel-body --> 
          <div class="layui-layer-footer">
            <div  class="footer-btn">
               <button type="submit" class="btn btn-success btn-embossed">修改</button>
               <button type="reset" class="btn btn-default btn-embossed">重置</button>
            </div>
       </div> 
        </form>         
        </div>
        </div>
        </section>
{include file="public/footer" /}
<script type="text/javascript">
$(document).ready(function(){
     zanpian.cms.data();
	 zanpian.form.submit();
});	
</script>
</body>
</html>
